﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecipeDemo.ViewModels
{
    public partial class MainWindowViewModel : ObservableObject
    {
        [RelayCommand]
        private void ButtonClick()
        {
            // 应用启动时导航到RecipeView
            _regionManager.RequestNavigate("MainRegion", "RecipeView");
        }

        IRegionManager _regionManager;


        // 可在此添加自定义逻辑（如窗口标题绑定）
        [ObservableProperty]
        private string _windowTitle = "AdvVerifyGUI";

        public MainWindowViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }
    }
}
